import Vue from 'vue'
import {
    Submenu,
    MenuItem,
    Menu,
    Form,
    FormItem,
    Button,
    Switch,
    Input,
    Breadcrumb,
    BreadcrumbItem,
    Card,
    Dropdown,
    DropdownMenu,
    DropdownItem,
    Select,
    Option,
    RadioButton,
    RadioGroup,
    Row,
    Col,   
    Tabs,
    TabPane,
    Checkbox,
    Pagination,
    TableColumn,
    Table,
    Tag,
    InputNumber,
    Loading,
    Notification,
    Message,
} from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

let element = new Object;

element.install = function() {
    Vue.use(Submenu)
    Vue.use(MenuItem)
    Vue.use(Menu)
    Vue.use(Form)
    Vue.use(FormItem)
    Vue.use(Button)
    Vue.use(Switch)
    Vue.use(Input)
    Vue.use(Breadcrumb)
    Vue.use(BreadcrumbItem)
    Vue.use(Card)
    Vue.use(Dropdown)
    Vue.use(DropdownMenu)
    Vue.use(DropdownItem)
    Vue.use(Select)
    Vue.use(Option)
    Vue.use(RadioButton)
    Vue.use(RadioGroup)
    Vue.use(Row)
    Vue.use(Col)   
    Vue.use(Tabs)
    Vue.use(TabPane)
    Vue.use(Checkbox)
    Vue.use(Pagination)
    Vue.use(TableColumn)
    Vue.use(Table)
    Vue.use(Tag)
    Vue.use(Loading.directive)

    Vue.prototype.$loading = Loading.service
    Vue.prototype.$notify = Notification
    Vue.prototype.$message = Message
}

export default element;